package ooday003;



public class Test1 {
    public static void main(String[] args) {

        Director[]directors=new Director[3];
        directors[0]=new Director("老马",20,100);
        directors[1]=new Director("小白",30,200);
        directors[2]=new Director("小蓝",25,300);
        System.out.println(directors[2].name);
        directors[1].finalWork();
        directors[2].age=20;
        for(int i=0;i<directors.length;i++){
            System.out.println(directors[i].name);
            directors[i].finalWork();

        }
    }
}
